package com.zyong.design.pattern.observer.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-05-15 00:06
 */
public class Client {
    public static void main(String[] args) {
        SubscriptionSubject subject = new SubscriptionSubject();

        subject.attach(new WeixinUser("Tom"));
        subject.attach(new WeixinUser("Mike"));
        subject.attach(new WeixinUser("Jerry"));

        subject.notify("这个公众号更新了");
    }
}
